package cn.stylefeng.guns.modular.tool.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.tool.entity.ToolWorkTask;
import cn.stylefeng.guns.modular.tool.model.params.ToolWorkTaskParam;
import cn.stylefeng.guns.modular.tool.model.result.ToolWorkTaskResult;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 补货任务表 服务类
 * </p>
 *
 * @author zhucx
 * @since 2023-04-20
 */
public interface ToolWorkTaskService extends IService<ToolWorkTask> {

    /**
     * 新增
     *
     * @author zhucx
     * @Date 2023-04-20
     */
    void add(ToolWorkTaskParam param);

    /**
     * 删除
     *
     * @author zhucx
     * @Date 2023-04-20
     */
    void delete(ToolWorkTaskParam param);

    /**
     * 更新
     *
     * @author zhucx
     * @Date 2023-04-20
     */
    void update(ToolWorkTaskParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author zhucx
     * @Date 2023-04-20
     */
    ToolWorkTaskResult findBySpec(ToolWorkTaskParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author zhucx
     * @Date 2023-04-20
     */
    List<ToolWorkTaskResult> findListBySpec(ToolWorkTaskParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author zhucx
     * @Date 2023-04-20
     */
     LayuiPageInfo findPageBySpec(ToolWorkTaskParam param,String condition);

	boolean saveBatchList(List<ToolWorkTaskParam> workTaskList);

	void deleteBySpec(ToolWorkTaskParam deleteToolWorkTaskParam);

}
